package com.example.dto;

import com.example.model.dto.BaseDTO;
import com.example.validator.group.AddGroup;
import com.example.validator.group.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;

@Data
@Schema(description = "基类管理DTO")
public class GenBaseClassDTO extends BaseDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "基类包名")
    private String packageName;

    @Schema(description = "基类编码")
    private String code;

    @Schema(description = "基类字段，多个用英文逗号分隔")
    private String fields;

    @Schema(description = "备注")
    private String remark;
}